import request from '@/utils/request'

// 分页查询用户套餐列表
export function listUserVip(query) {
  return request({
    url: '/work/userVip/list',
    method: 'post',
    data: query
  })
}

// 统计用户套餐数量
export function countUserVip(query) {
  return request({
    url: '/work/userVip/count',
    method: 'post',
    data: query
  })
}

// 查询用户套餐列表
export function queryUserVip(query) {
  return request({
    url: '/work/userVip/query',
    method: 'post',
    data: query
  })
}

// 查询用户套餐详细
export function getUserVip(id) {
  return request({
    url: '/work/userVip/get',
    method: 'post',
    data:{id:id}
  })
}

// 新增用户套餐
export function addUserVip(data) {
  return request({
    url: '/work/userVip/add',
    method: 'post',
    data: data
  })
}

// 修改用户套餐
export function updateUserVip(data) {
  return request({
    url: '/work/userVip/update',
    method: 'post',
    data: data
  })
}

// 删除用户套餐
export function delUserVip(id) {
  return request({
    url: '/work/userVip/delete/' + id,
    method: 'post'
  })
}

// 删除用户套餐
export function backUserVipByUid(data) {
  return request({
    url: '/work/userVip/backUid',
    method: 'post',
    data: data
  })
}

// 删除用户套餐
export function backUserVip(id) {
  return request({
    url: '/work/userVip/back/' + id,
    method: 'post'
  })
}
